package com.cloud.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.mall.goods.TbItem;
import com.cloud.mall.goods.dto.ItemStockDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-07-05
 */
@Mapper
public interface TbItemMapper extends BaseMapper<TbItem> {
    List<TbItem> selectForLockGoods(@Param("ids") List<Long> ids);

    int decreaseGoodsAmount(ItemStockDto itemStockDtos);
}
